#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<string>

using namespace std;

bool IsPalindrome(string s)
{
	string str;
	for (auto c : s)
	{
		if (isalnum(c))
		{
			str += tolower(c);
		}
	}
	int end = str.size() - 1;
	int start = 0;
	while (start < end)
	{
		if (str[end] != str[start])
		{
			return false;
		}
		++start;
		--end;
	}
	return true;
}

int main()
{
	string s;
	getline(cin, s);
	printf("%s\n", IsPalindrome(s) ? "true" : "false");
	return 0;
}